
template foo() {
    alias Foo(<resolved>T) = shared(inout(<ref>T);
}